home *** CD-ROM | disk | FTP | other *** search
- /* DosMan for REXX interface */
- /* by Peter Bagnato and John Collett */
-
- parse upper arg infile
- if infile = '' then do
- say 'Input page you wish to read:'
- pull infile
- infile='man/'infile
- end
- if ~open('textfile',infile,'read') then do
- say 'That file or path does not exist...'
- exit 20
- end
- do until eof('textfile')
- i=20 /* Edit this value to make fewer or more lines appear in CLI */
- do until i = 0
- line=readln('textfile')
- say line
- i=i-1
- end
- say 'continue reading? y/n'
- pull ans
- if ans='n' then
- exit 20
- endif
- end
- exit 0
-
-